import request from '@/utils/request'

// 查询安全教育列表
export function listAfSafetyEducation(query) {
  return request({
    url: '/security/afSafetyEducation/list',
    method: 'get',
    params: query
  })
}

// 查询安全教育详细
export function getAfSafetyEducation(id) {
  return request({
    url: '/security/afSafetyEducation/' + id,
    method: 'get'
  })
}

// 新增安全教育
export function addAfSafetyEducation(data) {
  return request({
    url: '/security/afSafetyEducation',
    method: 'post',
    data: data
  })
}

// 修改安全教育
export function updateAfSafetyEducation(data) {
  return request({
    url: '/security/afSafetyEducation',
    method: 'put',
    data: data
  })
}

// 删除安全教育
export function delAfSafetyEducation(id) {
  return request({
    url: '/security/afSafetyEducation/' + id,
    method: 'delete'
  })
}
